package SmartFurniture.Factory.Xiaomi;

import SmartFurniture.AbstractFactory.AirConditioner;
import SmartFurniture.Interface.SmartDevice;

public class XiaomiAirConditioner extends AirConditioner {
    public void init(){
        System.out.println("正在初始化小米空调...");
        System.out.println("正在加载小米协议...");
        System.out.println("初始化完成");
    }


    public SmartDevice clone() throws CloneNotSupportedException {
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }

    @Override
    public String getName() {
        return "小米空调";
    }

    @Override
    public String getInfo() {
        return "小米空调,采用小米协议,支持智能家居控制";
    }

}
